﻿@model BlogKickStart.Models.User

@{
    ViewBag.Title = "AddUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>AddUser</h2>
<script src="@Url.Content("~/Scripts/jquery-1.5.1.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>
			<table>
				<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.FirstNM)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.FirstNM)
							@Html.ValidationMessageFor(model => model.FirstNM)
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.LastNM)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.LastNM)
							@Html.ValidationMessageFor(model => model.LastNM)
						</div>
					</td>
				</tr>
				<tr>
					<td>
						 <div class="editor-label">
							@Html.LabelFor(model => model.Birthday)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							<!--@Html.EditorFor(model => model.Birthday)-->
							<input class="text-box single-line" data-val="true" data-val-required="The Birthday field is required." id="Birthday" name="Birthday" type="date" value="" />
							@Html.ValidationMessageFor(model => model.Birthday)
						</div>
					</td>
				</tr>
				<!--<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.CreateDate)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.CreateDate)
							@Html.ValidationMessageFor(model => model.CreateDate)
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.BlogID)<span>: </span>
						</div>
						
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.BlogID)
							@Html.ValidationMessageFor(model => model.BlogID)
						</div>
					</td>
				</tr>-->
				<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.Pass)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.Pass)
							@Html.ValidationMessageFor(model => model.Pass)
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="editor-label">
							<span>Retype Pass: </span>	
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.Pass)
							@Html.ValidationMessageFor(model => model.Pass)
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="editor-label">
							@Html.LabelFor(model => model.UserName)<span>: </span>
						</div>
					</td>
					<td>
						<div class="editor-field">
							@Html.EditorFor(model => model.UserName)
							@Html.ValidationMessageFor(model => model.UserName)
						</div>
					</td>
				</tr>
			</table>
        <p>
            <input type="submit" value="Create" />
			
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
